package DesignPatern.A21_解释器模式.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/8/12 11:44
 */
public class TerminalExpression extends Expression
{
    @Override
    public Object interpreter(Context ctx)
    {
        return Integer.valueOf(ctx.getInput()) + 1;
    }
}
